package com.ly.heart.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-不良品处理单物料明细其他信息对象 erp_king_bad_handle_material_detail_info
 *
 * @author cxl
 * @date 2024-08-11
 */
@TableName ("erp_king_bad_handle_material_detail_info")
@ApiModel (value = "金蝶-不良品处理单物料明细其他信息", description = "金蝶-不良品处理单物料明细其他信息")
@Data
@Accessors(chain = true)
public class KingBadHandleMaterialDetailEntity{

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 不良品处理单主表id */
    @ApiModelProperty ("不良品处理单主表id")
    @TableField ("bad_handle_id")
    @Excel (name = "不良品处理单主表id")
    private String badHandleId;

    /** 不良品处理单分录表id */
    @ApiModelProperty ("不良品处理单分录表id")
    @TableField ("bad_handle_material_id")
    @Excel (name = "不良品处理单分录表id")
    private String badHandleMaterialId;

    /** 关闭状态 */
    @ApiModelProperty ("关闭状态")
    @TableField ("close_status")
    @Excel (name = "关闭状态")
    private String closeStatus;

    /** 折让金额 */
    @ApiModelProperty ("折让金额")
    @TableField ("discount_amount")
    @Excel (name = "折让金额")
    private String discountAmount;

    /** 序号 */
    @ApiModelProperty ("序号")
    @TableField ("serial_num")
    @Excel (name = "序号")
    private String serialNum;

    /** 物料id */
    @ApiModelProperty ("物料id")
    @TableField ("material_id")
    @Excel (name = "物料id")
    private String materialId;

    /** 物料编码 */
    @ApiModelProperty ("物料编码")
    @TableField ("material_code")
    @Excel (name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @ApiModelProperty ("物料名称")
    @TableField ("material_name")
    @Excel (name = "物料名称")
    private String materialName;

    /** 批号 */
    @ApiModelProperty ("批号")
    @TableField ("batch_num")
    @Excel (name = "批号")
    private String batchNum;

    /** 折让选单金额 */
    @ApiModelProperty ("折让选单金额")
    @TableField ("discount_choose_amount")
    @Excel (name = "折让选单金额")
    private String discountChooseAmount;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 逻辑删除 */
    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    @TableLogic
    private Integer isUsed;


}
